#ifndef __TROPHY_LOGO_STROKE_H__
#define __TROPHY_LOGO_STROKE_H__

#include "win_defines.h"
#include <windows.h>

typedef struct tagLine {
   POINT       from;
   POINT       to;
   UINT        penwidth;
   COLORREF    pencolor;
} Line;

typedef struct tagText {
   POINT       position;
   char*       ptext;
   UINT        fontsize;
   COLORREF    pencolor;
} Text;

class ICanvas;

class CStroke {
public:
   CStroke ();
   virtual ~CStroke();

   bool Intersect(ICanvas* pCanvas, RECT& rc);
   char* CopyString (char* str);

protected:
   bool IntersectLine(RECT& rc);
   bool IntersectText(ICanvas* pCanvas, RECT& rc);


public:
   bool        m_bText;
   union {
      Line     m_line;
      Text     m_text;
   };
   CStroke* m_pNext;
};
#endif // __TROPHY_LOGO_STROKE_H__
